<template>
  <view class="points-error-container">
    <text class="error-title">积分不足</text>
    <text class="error-message">您的积分不足，请充值后继续操作。</text>
    <button class="error-button" @click="goBack">返回首页</button>
  </view>
</template>

<script>
export default {
  methods: {
    goBack() {
      uni.reLaunch({
        url: '/pages/home/home' // 返回到首页或其他页面
      });
    }
  }
};
</script>

<style scoped>
.points-error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #f9f9f9;
  text-align: center;
}

.error-title {
  font-size: 24px;
  font-weight: bold;
  color: #d9534f;
  margin-bottom: 10px;
}

.error-message {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.error-button {
  padding: 10px 20px;
  background-color: #d9534f;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.error-button:hover {
  background-color: #c9302c;
}
</style>